package com.foo.app.Pojo;


import java.io.Serializable;
import java.util.Arrays;

/**
 * TODO 用户信息类

 */

public class User implements Serializable {

    /**
     * TODO 用户id 外键
     */
    private Integer id;

    /**
     * TODO 用户姓名
     */
    private String name;

    /**
     * TODO 用户性别
     */
    private String sex;
    /**
     * TODO 用户年龄，只精确到年份
     */
    private String birth;

    /**
     * TODO 用户身份识别  identy==0 -> 普通用户  identy==1 -> 商家
     */
    private Integer identy;

    /**
     * TODO 字节数组的字符串形式
     */
    private String head_portrait;

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public Integer getIdenty() {
        return identy;
    }

    public void setIdenty(Integer identy) {
        this.identy = identy;
    }

    public String getHead_portrait() {
        return head_portrait;
    }

    public void setHead_portrait(String head_portrait) {
        this.head_portrait = head_portrait;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birth='" + birth + '\'' +
                ", identy=" + identy +
                ", head_portrait='" + head_portrait + '\'' +
                '}';
    }
}
